.global rv_start
rv_start:
addi a0, x0, 0
addi a1, x0, 1
addi a2, x0, 5
#sb  a0, 1(a2)
cycle:
#lb  a0, 1(a2)
add a0, a0, a1
sb  a0, 0(a2)
addi a2, a2, -1
bne  a2, x0, cycle
loop:
j loop

